const channelRoter = {
  path: "/home",
  name: "home",
  component: () => import("@/components/home"),
  meta: {
    title: "home",
    keepAlive: true,
    index: "1"
  },
  // component: () => import('@/components/home') 异步组件加在更快（需要安装npm i babel-plugin-syntax-dynamic-import -D）
  children: [
    {
      path: "/test1",
      name: "test1",
      base: '/home',
      component: () => import("@/components/HomeList/test"),
      meta: {
        title: "test1",
        keepAlive: true
      }
    },
    {
      path: "/test2",
      name: "test2",
      base: '/home',
      component: () => import("@/components/HomeList/test1"),
      meta: {
        title: "test",
        keepAlive: true
      }
    }
  ]
  // redirect: '/fruit/banana' // 在children的后面加一个redirect：'/想要默认展示的子路由名字'0
};
export default channelRoter;
